﻿using KinonekoSoftware.CodariaDB.Documents.Personalities;
using KinonekoSoftware.Studio.Models.DataParts.Personality;

namespace KinonekoSoftware.Studio.Builders
{
    public static class EvaluationBuilder
    {
        public static EvaluationPresenter Build(Evaluation evaluation, InstanceCacheEngine engine)
        {
            var from = engine.Get(evaluation.From);
            var to   = engine.Get(evaluation.To);

            return new EvaluationPresenter(to, from, evaluation);
        }
    }
}